Make cpu operations warning a VERBOSE print
authorSoby Mathew <[email protected]>
Mon, 21 Mar 2016 10:36:47 +0000 (10:36 +0000)
committerSoby Mathew <[email protected]>
Tue, 22 Mar 2016 10:00:42 +0000 (10:00 +0000)
commit1319e7b19308e07bfa1234dd9aa785f72ab68cea
tree98a596f5f91c4b2b126e10e13211c8273f70dfcc
parent55a85659c0a35dba10c72a9c38b82b29f77a90ad
Make cpu operations warning a VERBOSE print

The assembler helper function `print_revision_warning` is used when a
CPU specific operation is enabled in the debug build (e.g. an errata
workaround) but doesn't apply to the executing CPU's revision/part number.
However, in some cases the system integrator may want a single binary to
support multiple platforms with different IP versions, only some of which
contain a specific erratum.  In this case, the warning can be emitted very
frequently when CPUs are being powered on/off.

This patch modifies this warning print behaviour so that it is emitted only
when LOG_LEVEL >= LOG_LEVEL_VERBOSE. The `debug.h` header file now contains
guard macros so that it can be included in assembly code.

Change-Id: Ic6e7a07f128dcdb8498a5bfdae920a8feeea1345
include/common/debug.h
lib/cpus/aarch64/cortex_a53.S
lib/cpus/aarch64/cortex_a57.S
lib/cpus/aarch64/cpu_helpers.S